strsq1="select * from qqfriend where "&txt1&" like '%"&txtcond1.Text&"%'" 有错误吗

来源:百度知道 编辑:UC知道 时间:2024/05/16 13:05:06
请帮帮我!

strsq1="select * from qqfriend where "&txt1&" like '%+"&txtcond1.Text&"+%'"

或是:
strsq1="select * from qqfriend where "&txt1&" like '"%"+"&txtcond1.Text&"+"%"'"

是VB脚本就没错
是其他的就要把&改+号

strsq1="select * from qqfriend where txt1 Like '%"& txtcond1.Text &"%'"

没错,VB